import request from '@/utils/request'

// 查询货值审核列表
export function listAudit(query) {
  return request({
    url: '/charge/valAudit/list',
    method: 'get',
    params: query
  })
}

// 查询货值审核详细
export function getAudit(id) {
  return request({
    url: '/charge/valAudit/getInfo/' + id,
    method: 'get'
  })
}

// 查询商品货值列表
export function getGoodsList(billCode) {
  return request({
    url: '/charge/valAudit/billsList/' + billCode,
    method: 'get'
  })
}

// 货值审核附件上传
export function updateUpload(data) {
  return request({
    url: '/charge/valAudit/upload',
    method: 'post',
    data: data
  })
}

// 新增货值审核
export function addAudit(data) {
  return request({
    url: '/charge/valAudit/add',
    method: 'post',
    data: data
  })
}

// 新增货值审核
export function updateGoodsValue(data) {
  return request({
    url: '/charge/valAudit/updateGoodsValue',
    method: 'post',
    data: data
  })
}

// 货值审核
export function audAudit(data) {
  return request({
    url: '/charge/valAudit/audit',
    method: 'post',
    data: data
  })
}

// 修改货值审核
export function updateAudit(data) {
  return request({
    url: '/charge/valAudit/edit',
    method: 'post',
    data: data
  })
}

// 删除货值审核
export function delAudit(id) {
  return request({
    url: '/charge/valAudit/remove/' + id,
    method: 'get'
  })
}

// 导出货值审核
export function exportAudit(query) {
  return request({
    url: '/charge/valAudit/export',
    method: 'get',
    params: query
  })
}
